package tutorial;

public class AllCardsInDeck {
	private int rankNumber = 1;
	private int suiteNumber = 1;
	  private AllCardsInDeck (int rankNumber, int suiteNumber){
		  this.rankNumber = rankNumber;
		  this.suiteNumber = suiteNumber;
	  }
	  private String getCardValue (int rankNumber, int suiteNumber) {
		  String rankValue = null;
		  String suiteValue = null;
		  switch (rankNumber) {
		    case 1: rankValue = "Tuz";
		    break;
		    case 2: rankValue = "Valet";
		    break;
		    case 3: rankValue = "Dama";
		    break;
		    case 4: rankValue = "King";
		    break;
		    case 5: rankValue = "Six";
		    break;
		    case 6: rankValue = "Seven";
		    break;
		    case 7: rankValue = "Eight";
		    break;
		    case 8: rankValue = "Nine";
		    break;
		    case 9: rankValue = "Ten";
		    break;
		  }
		  switch (suiteNumber) {
		    case 1: suiteValue = "Love";
		    break;
		    case 2: suiteValue = "Ruby";
		    break;
		    case 3: suiteValue = "Krest";
		    break;
		    case 4: suiteValue = "Pika";
		    break;
		  }
		  return rankValue+" "+suiteValue; 
		  
	  }

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
       for (int j=1; j<=4; j++){
    	 for (int i=1; i<=9; i++){
    		 System.out.println("this is a card "+new AllCardsInDeck(0,0).getCardValue(i,j));
    	 }
       }
       System.out.println("this is a DEBUG card "+new AllCardsInDeck(0,0).getCardValue(1,2));
	}

}
